<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<TestBat.Frontend.Controllers.ViewData.Overview.ResultsViewData>" %>
<%@ Import Namespace="TestBat.Frontend.Helpers" %>

<asp:Content ContentPlaceHolderID="Header" runat="server">
	My results
</asp:Content>

<asp:Content ContentPlaceHolderID="MainContent" runat="server">

    <%= Html.ImageLink("Index", "Overview", null, "~/Styles/Icons/16x16/back.png", "Back to the overview") %>
    
    <table>
        <thead>
            <tr>
                <th width="200" align="left">Schedule</th>
                <th width="200">You took the test on</th>
                <th>&nbsp;</th>
            </tr>
        </thead>
    <% foreach (var t in Model.Tests)
       { %>
       <tr>
        <td><%= t.Schedule.Name %></td>
        <td align="center"><%= t.StartTime %></td>
        <td>
            <%= Html.ImageLink("Details", "Result", new { testID = t.ID }, "~/Styles/Icons/16x16/pencil.png", "Results")%>
        </td>
       </tr>
    <% } %>
    </table>

</asp:Content>
